<?php

namespace app\admin\controller;

use think\Controller;
// use think\Db;

class Admin extends Controller
{
    public function _initialize()
    {
        session_start();
        if(empty($_SESSION['admin']['id'])){

            $this->redirect('/admin/Login');
        }
    }
}